//
//  HR_UMPush.h
//  Pods
//
//  Created by MAC on 2017/7/21.
//
//

#import <Foundation/Foundation.h>
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 100000
#import <UserNotifications/UserNotifications.h>
@class UNUserNotificationCenter;
#endif
@protocol HR_UserNotificationCenterDelegate <NSObject>

@optional
//iOS10新增：处理前台收到通知的代理方法
- (void)hr_userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
//iOS10新增：处理后台点击通知的代理方法
- (void)hr_userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)())completionHandler;

@end

@interface HR_UMPush : NSObject

@property (weak, nonatomic) id <HR_UserNotificationCenterDelegate>delegate;
//在appdelegate配置并使用
- (void)configUMPushWithAppkey:(NSString *)appKey launchOptions:(NSDictionary*)launchOptions;

@end
